/**
 * Copyright (c) 2018-2028, HQY 胡庆一 (215218393@qq.com).
 * <p>
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/lgpl.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.ocm.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.ocm.core.mp.base.BaseEntity;

/**
 * 实体类
 *
 * @author HQY
 * @since 2021-11-05
 */
@Data
@TableName("ocm_api")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Api对象", description = "Api对象")
public class Api extends BaseEntity {

    private static final long serialVersionUID = 1L;
	@ApiModelProperty(value = "主键")
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;

	@JsonSerialize(using = ToStringSerializer.class)
  	private Long parentId;
  	private String apiName;
  	private String apiCode;
    /**
     * 允许使用通配符
     */
    @ApiModelProperty(value = "允许使用通配符")
    private String apiPath;
  	private String apiDescribe;
    /**
     * GET/PUT/POST.....请使用大写标注(不允许多个值)
     */
    @ApiModelProperty(value = "GET/PUT/POST.....请使用大写标注(不允许多个值)")
    private String apiMethod;
  	private Integer apiType;
  	private Integer sort;


}
